CREATE PROCEDURE [dbo].[sp_sec_AddResource]
@Resource varchar(50), @UserUpdater int
WITH EXEC AS CALLER
AS
BEGIN
  BEGIN TRAN A
  INSERT INTO SC_Resource(Resource,UpdatedBy)
  VALUES(@Resource , @UserUpdater );
  IF @@ERROR<>0 BEGIN
    ROLLBACK TRAN A
  END
  COMMIT TRAN A
END